package com.brayan.webapp.controller;

import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Inject;

import com.brayan.webapp.model.PubThread;
import com.brayan.webapp.repository.PubThreadRepository;

@ManagedBean
@RequestScoped
public class ListPubThreadController {
	@Inject
	private PubThreadRepository pubThreadRepository;
	
	private List<PubThread> allPubThreads;


	public List<PubThread> getAllPubThreads() {
		this.allPubThreads = pubThreadRepository.getAllPubThreads();
		return this.allPubThreads;
	}

	public void setAllPubThreads(List<PubThread> allPubThreads) {
		this.allPubThreads = allPubThreads;
	}
	
}
